home *** CD-ROM | disk | FTP | other *** search
- SHIFT
- Allows use of more than 10 parameters within a batch file.
-
- COMMAND TYPE: Internal (batch) VERSION: 2.0 and up
-
- USE: SHIFT
-
- When more than one replaceable parameter is used, SHIFT will shift the
- parameter list one position to the left.
-
- EXAMPLE: Assume that there is a batch file called COPYFILE.BAT that
- copies files from one drive to another. Also assume that it uses 4
- replaceable parameters, %0, %1, %2, and %3. If you invoke COPYFILE.BAT
- using the replaceable parameters:
-
- COPYFILE *.DAT *.EXE *.COM *.BAT
-
- then %0 equals *.DAT, %1 equals *.EXE, %2 equals *.COM, and %3 equals
- *.BAT. After a SHIFT command is issued, the list of parameters will shift
- one to the left and, %0 will equal *.EXE, %1 will equal *.COM, and %2 will
- equal *.BAT.
-